﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Data.Linq;

namespace DiscMaster.Web.Models
{
    [MetadataType(typeof(Club_MetaData))]
    public partial class Club
    {
    }
    internal class Club_MetaData
    {
        [ScaffoldColumn(false)]
        public Guid clubid { get; set; }

        [ScaffoldColumn(false)]
        public Guid createdby { get; set; }

        [ScaffoldColumn(false)]
        public EntitySet<NewsItem> NewsItems { get; set; }

        [ScaffoldColumn(false)]
        public EntitySet<ClubMember> ClubMembers { get; set; }

        [ScaffoldColumn(false)]
        public Player Player { get; set; }

        [ScaffoldColumn(false)]
        [DisplayName("Home course")]
        public Course Course { get; set; }

        [DisplayName("Club name")]
        [Required(ErrorMessage = "Name is required.")]
        public string name { get; set; }

        [DisplayName("Home course")]
        [UIHint("Course")]
        public Guid homecourse { get; set; }

        [DisplayName("Phone")]
        [DataType(DataType.PhoneNumber)]
        public string phone { get; set; }

        [RegularExpression(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", ErrorMessage = "Valid Email Address is required.")]
        [DisplayName("Email address")]
        [DataType(DataType.EmailAddress)]
        public string email { get; set; }

        [DisplayName("Website")]
        [DataType(DataType.Url)]
        public string website { get; set; }

        [DisplayName("Logo url")]
        [DataType(DataType.Url)]
        public string logo { get; set; }
    }
}
